package java01.ui;

import java01.bll.IShape;
import java01.bll.Rectangle;
import java01.bll.ShapeOperation;
import java01.bll.Square;

interface IB {
    void f1();
    void f2();
}

interface IC extends IB {
    void f3();
    void f4();
}

class A implements IC {

    @Override
    public void f1() {

    }

    @Override
    public void f2() {

    }

    @Override
    public void f3() {

    }

    @Override
    public void f4() {

    }
}



public class Test {
    public static void main(String[] args) {
       /* Square square = new Square(5);
        double area = ShapeOperation.areaOperation(square);
        double perimeter = ShapeOperation.pemimeterOperation(square);

        Rectangle rectangle = new Rectangle(10, 5);
        area = ShapeOperation.areaOperation(rectangle);
        perimeter = ShapeOperation.pemimeterOperation(rectangle);*/

        IShape shape = new Square(5);
        double area = ShapeOperation.areaOperation(shape);
        double perimeter = ShapeOperation.pemimeterOperation(shape);

        shape = new Rectangle(10, 5);
        area = ShapeOperation.areaOperation(shape);
        perimeter = ShapeOperation.pemimeterOperation(shape);
    }
}
